package com.dk.shared.events.demo;

import com.dk.shared.events.common.AbstractLocalEvent;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description
 * @Author 王大凯
 * @Date 2022-06-01 22:24
 */
@Getter
@Setter
@ToString(callSuper = true)
public class DemoEvent extends AbstractLocalEvent {

    private Integer num;
    protected DemoEvent(Integer num) {
        super("base");
        this.num = num;
    }

    public static DemoEvent of(Integer num) {
        return new DemoEvent(num);
    }
}
